<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			const arr = [1, 2, 3];
			/* let a = arr[0];
			let b = arr[1];
			let c = arr[2]; */

			let [a, b, c] = arr;
			// console.log(a, b, c);

			const stu = {
				name: "张三",
				age: 20
			}

			// let name = stu.name;
			// let age = stu.age;

			let {
				name,
				age
			} = stu;
			// console.log(name, age);

			let s3 = '{"code":200,"message":"成功!","result":{"name":"寻常百种花齐发，偏摘梨花与白人。","from":"元稹《离思五首》"}}';
			const o3 = JSON.parse(s3);
			// console.log(o3.result.name);
			const {
				result
			} = o3;

			// console.log(result.name);
		</script>
	</head>
	<body>
	</body>
</html>
